import React from 'react';
import { NavLink } from 'react-router-dom';


import styles from './index.module.less';

export default class Nav extends React.Component {
  render() {
    return (
      <React.Fragment>
        <div className={styles.box}>
          <NavLink exact to="/news/latestnew" activeClassName={styles.active}>最新资讯</NavLink>
          <NavLink to="/news/national-news" activeClassName={styles.active}>国内新闻</NavLink>
          <NavLink to="/news/international-news" activeClassName={styles.active}>国际新闻</NavLink>
          <NavLink to="/news/police-news" activeClassName={styles.active}>政策法规</NavLink>
          <NavLink to="/news/technology-news" activeClassName={styles.active}>行业技术</NavLink>
        </div>
      </React.Fragment>
    );
  }
}
